package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.Material;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 素材表
 * @author : 
 * @email : 
 * @since : 2020-02-27 04:39:32
 * @version : v1.0.0
 */
@Mapper
public interface  MaterialMapper {

    long insert(Material material);

    long delete(Long id);

    long update(Material material);

    Material queryByPrimaryKey(Long id);

    List<Material> query(Material material);

    List<Material> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("material") Material material);

    long queryPageCount(Material material);

    List<Material> queryByCategoryIds(@Param("categoryIds") List<Long> categoryIds);

}